Fix annotations for gtk_accelerator_parse
authorMatthias Clasen <mclasen@redhat.com>
Sun, 13 Mar 2011 02:23:25 +0000 (21:23 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 13 Mar 2011 02:23:25 +0000 (21:23 -0500)
Part of bug 644353, patch by Ulrik Sverdrup.

gtk/gtkaccelgroup.c

index f131d065fd28aed9ed99e72123077874514bacd1..a46ac68dc3edf163ee74e671bfb1b11875ad500c 100644 (file)
@@ -1147,8 +1147,10 @@ is_hyper (const gchar *string)
 /**
  * gtk_accelerator_parse:
  * @accelerator: string representing an accelerator
- * @accelerator_key: (out): return location for accelerator keyval
- * @accelerator_mods: (out): return location for accelerator modifier mask
+ * @accelerator_key: (out) (allow-none): return location for accelerator
+ *     keyval, or %NULL
+ * @accelerator_mods: (out) (allow-none): return location for accelerator
+ *     modifier mask, %NULL
  *
  * Parses a string representing an accelerator. The
  * format looks like "&lt;Control&gt;a" or "&lt;Shift&gt;&lt;Alt&gt;F1"